home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cpptutor.arc / TABCONT.TXT < prev    next >
Text File  |  1991-04-28  |  9KB  |  184 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.                        CORONADO ENTERPRISES
  7.  
  8.                     C++ TUTORIAL - Version 2.0
  9.  
  10.  
  11. This documentation and the accompanying software, including all of
  12. the example C++ programs and text files, are protected under United
  13. States copyright law to protect them from unauthorized commercial-
  14. ization.  This version of the tutorial is distributed under the
  15. shareware concept, which means you are not required to pay for it.
  16. You are permitted to copy the disks, and pass the copies on to a 
  17. friend, provided that you do not modify any files or omit any files
  18. from the complete package, and you are in fact encouraged to pass
  19. on complete copies to friends.  You are permitted to charge a small
  20. fee to cover the costs of duplication, but you are not permitted to 
  21. charge anything for the software itself.
  22.  
  23. If you find the tutorial helpful, you are encouraged to register
  24. with the author and to submit a small fee to help compensate him
  25. for his time and expense in writing it.  We will provide you with
  26. a beautifully printed copy of this tutorial if you submit a full
  27. registration.  See the READ.ME file on either diskette for addi-
  28. tional details.
  29.  
  30. Whether or not you send a registration fee, feel free to request
  31. a copy of the latest list of available tutorials and a list of the
  32. authorized Public Domain libraries that distribute our full line of
  33. programming language tutorials.
  34.  
  35.  
  36.  
  37.                    Gordon Dodrill - July 20, 1990
  38.  
  39.  
  40.  
  41.            Copyright (c) 1989, 1990,  Coronado Enterprises
  42.  
  43.  
  44.                        Coronado Enterprises
  45.                       12501 Coronado Ave NE
  46.                   Albuquerque, New Mexico 87122
  47.  
  48.  
  49.  
  50.  
  51.                  C++ TUTORIAL - TABLE OF CONTENTS 
  52.  
  53. Introduction                                            Page I-1
  54.  
  55. Chapter  1 - Simple Things                              Page 1-1
  56.     CONCOM.CPP    Constants and comments                  1-1
  57.     SCOPEOP.CPP   Scope operator                          1-3
  58.     MESSAGE.CPP   The stream library                      1-3
  59.     FSTREAM.CPP   File streams                            1-6
  60.     VARDEF.CPP    Variable definitions                    1-7
  61.  
  62. Chapter  2 - Compound Types                             Page 2-1
  63.     ENUM.CPP      The enumerated type                     2-1
  64.     STRUCTUR.CPP  The structure                           2-1
  65.     CLASS1.CPP    The class                               2-2
  66.     UNIONEX.CPP   The union                               2-3
  67.     TYPECONV.CPP  Type conversions                        2-4
  68.  
  69. Chapter  3 - Pointers                                   Page 3-1
  70.     POINTERS.CPP  Using Pointers                          3-1
  71.     NEWDEL.CPP    New and delete operators                3-3
  72.     FUNCPNT.CPP   Function pointers                       3-5
  73.  
  74. Chapter  4 - Functions                                  Page 4-1
  75.     PROTYPE1.CPP  Using prototypes                        4-1
  76.     PROTYPE2.CPP  Using prototypes                        4-3
  77.     PASSREF.CPP   Pass by reference                       4-5
  78.     DEFAULT.CPP   Parameter defaults                      4-6
  79.     VARARGS.CPP   Variable number of arguments            4-7
  80.     OVERLOAD.CPP  Overloading function names              4-8
  81.  
  82. Chapter  5 - Encapsulation                              Page 5-1
  83.     OPEN.CPP      No information hiding                   5-1
  84.     CLAS.CPP      Information hiding                      5-2
  85.     OPENPOLE.CPP  Corruptible data                        5-6
  86.     CLASPOLE.CPP  Protected data                          5-7
  87.     CONSPOLE.CPP  Constructors and destructors            5-10
  88.     BOXES1.CPP    All in one file                         5-11
  89.     BOX.HPP       Box interface                           5-12
  90.     BOX.CPP       Box implementation                      5-12
  91.     BOXES2.CPP    Using the box class                     5-13
  92.  
  93.  
  94.  
  95. Chapter  6 - More encapsulation                         Page 6-1
  96.     OBJARRAY.CPP  An Array of objects                     6-1
  97.     OBJSTRNG.CPP  An object with a string                 6-3
  98.     OBJINTPT.CPP  An object with a pointer                6-3
  99.     OBJDYNAM.CPP  Dynamic allocation of objects           6-5
  100.     OBJLIST.CPP   Embedded pointers                       6-6
  101.     OBJLINK.CPP   Linked list of objects                  6-7
  102.     NESTING.CPP   Nested classes                          6-9
  103.     OPOVERLD.CPP  Operator overloading                    6-10
  104.     FUNCOVER.CPP  Function name overloading               6-12
  105.  
  106. Chapter  7 - Inheritance                                Page 7-1
  107.     VEHICLE.HPP   Vehicle interface                       7-1
  108.     VEHICLE.CPP   Vehicle implementation                  7-2
  109.     TRANSPRT.CPP  Using the vehicle class                 7-2
  110.     CAR.HPP       Car interface                           7-3
  111.     CAR.CPP       Car implementation                      7-4
  112.     TRUCK.HPP     Truck interface                         7-5
  113.     TRUCK.CPP     Truck implementation                    7-6
  114.     ALLVEHIC.CPP  Use of car, truck, & vehicle            7-6
  115.  
  116. Chapter  8 - More inheritance                           Page 8-1
  117.     INHERIT1.CPP  Using public                            8-1
  118.     INHERIT2.CPP  Omitting public                         8-2
  119.     INHERIT3.CPP  Intra class messages                    8-4
  120.     INHERIT4.CPP  Using protected                         8-4
  121.     INHERIT5.CPP  Using constructors                      8-6
  122.     INHERIT6.CPP  Arrays and pointers                     8-6
  123.  
  124. Chapter  9 - Multiple Inheritance                       Page 9-1
  125.     MULTINH1.CPP  Multiple inheritance                    9-2
  126.     MULTINH2.CPP  Duplicate method names                  9-3
  127.     MULTINH3.CPP  Duplicate variable names                9-4
  128.  
  129. Chapter 10 - Virtual functions                          Page 10-1
  130.     VIRTUAL1.CPP  The starting point                      10-1
  131.     VIRTUAL2.CPP  Adding virtual                          10-3
  132.     VIRTUAL3.CPP  Using pointers to subclasses            10-3
  133.     VIRTUAL4.CPP  Using virtual                           10-4
  134.     VIRTUAL5.CPP  Using pointers to parent class          10-4
  135.     VIRTUAL6.CPP  True virtual functions                  10-6
  136.  
  137. Chapter 11 - More Virtual Functions                     Page 11-1
  138.     PERSON.HPP    Person header                           11-1
  139.     PERSON.CPP    Person implementation                   11-2
  140.     SUPERVSR.HPP  Personnel header                        11-2
  141.     SUPERVSR.CPP  Personnel implementation                11-3
  142.     EMPLOYEE.CPP  A simple user program                   11-3
  143.     ELEMLIST.HPP  Linked list header                      11-4
  144.     ELEMLIST.CPP  Linked list implementation              11-5
  145.     EMPLOYE2.CPP  A better user program                   11-5
  146.  
  147.  
  148.  
  149.  
  150.  
  151. Chapter 12 - Flyaway adventure game                     Page 12-1
  152.     FLYAWAY.EXE   Flyaway executable                      12-1
  153.     CLOCK.HPP     Clock header                            12-2
  154.     CLOCK.CPP     Clock implementation                    12-2
  155.     ITEMS.HPP     Moveable items header                   12-3
  156.     ITEMS.CPP     Items implementation                    12-3
  157.     SCHEDULE.HPP  Scheduler header                        12-4
  158.     SCHEDULE.CPP  Scheduler implementation                12-4
  159.     LOCATION.HPP  Locations header                        12-5
  160.     LOCATION.CPP  Locations implementation                12-5
  161.     MESSAGE.H     Hint messages                           12-6
  162.     FLYAWAY.H     Nouns and verbs                         12-7
  163.     COMMAND.CPP   Command parser                          12-7
  164.     FLYAWAY.CPP   Main program                            12-8
  165.  
  166.  
  167.  
  168. ABOUT THE AUTHOR
  169. _________________________________________________________________
  170.  
  171. The author of this tutorial began programming in 1961 using FORTRAN
  172. on an IBM 1620.  Since then, most of his career has been involved
  173. with designing digital logic for satellite application.  In 1983,
  174. being somewhat burned out with logic design, he began a study of
  175. some of the more modern programming languages and has since made
  176. a complete career shift to software development.  After learning
  177. Pascal, C was studied, followed by Modula-2 and Ada, and more
  178. recently C++.  Rather than simply learning the syntax of each new
  179. language, modern methods of software engineering were studied and
  180. applied to effectively utilize the languages.  He is currently
  181. employed by a large research and development laboratory where he
  182. continues to study, teach, and apply the newer programming
  183. languages.
  184.